import java.util.*;
public class PP2_8{
    public static void main(String[] args){
        int onefen,twofen,fivefen,onejiao,fivejiao,oneyuan;
        float total;
        System.out.println("Please input the amount of the following coins:onefen,towfen,fivefen,onejiao,fivejiao,oneyuan.");
        Scanner scan = new Scanner(System.in);
        onefen=scan.nextInt();
        twofen=scan.nextInt();
        fivefen=scan.nextInt();
        onejiao=scan.nextInt();
        fivejiao=scan.nextInt();
        oneyuan=scan.nextInt();
        total=onefen+twofen*2+fivefen*5+onejiao*10+fivejiao*50+oneyuan*100;
        total=total/100;
        System.out.println("The total money is:"+total+" yuan.");
}}
